gtk4.git
5 years agoreftests: Plug a few memory leaks
Matthias Clasen [Sat, 27 Mar 2021 20:23:17 +0000 (16:23 -0400)]
reftests: Plug a few memory leaks

Noticed in passing.

5 years agorelease: Actually include docs
Matthias Clasen [Sat, 27 Mar 2021 18:22:19 +0000 (14:22 -0400)]
release: Actually include docs

5 years agoUpdates
Matthias Clasen [Thu, 25 Mar 2021 11:44:51 +0000 (07:44 -0400)]
Updates

5 years agoMerge branch 'file-chooser-fixes' into 'master'
Matthias Clasen [Sat, 27 Mar 2021 14:23:15 +0000 (14:23 +0000)]
Merge branch 'file-chooser-fixes' into 'master'

File chooser fixes

See merge request GNOME/gtk!3356

5 years agofilechooser: Make / work as shortcut again
Matthias Clasen [Sat, 27 Mar 2021 13:57:00 +0000 (09:57 -0400)]
filechooser: Make / work as shortcut again

Typing / is meant to open the location entry, so
prevent search from capturing that key.

5 years agofilechooser: Fix fallout from GtkText
Matthias Clasen [Sat, 27 Mar 2021 13:54:20 +0000 (09:54 -0400)]
filechooser: Fix fallout from GtkText

Ever since the GtkText split, the focus is no longer
on an entry, but inside it. The filechooser was never
updated for that.

5 years agofilechooser: Make Ctrl-L work again
Matthias Clasen [Sat, 27 Mar 2021 13:53:43 +0000 (09:53 -0400)]
filechooser: Make Ctrl-L work again

Prevent search from preempting the Ctrl-L shortcut
that is meant to show the location entry.

5 years agolayout: Be quiet about trivialities
Matthias Clasen [Sat, 27 Mar 2021 12:59:21 +0000 (08:59 -0400)]
layout: Be quiet about trivialities

Commit 8b82993dde5bea985d added a noisy warning
to gtk_distribute_natural_allocation to quiet a
compiler warning. It turn out that the file chooser
managed to trigger this warning, so make it a quiet
return.

5 years agorelease: Update included subprojects
Matthias Clasen [Sat, 27 Mar 2021 12:55:51 +0000 (08:55 -0400)]
release: Update included subprojects

5 years agoMerge branch 'double-dead-keys' into 'master'
Matthias Clasen [Sat, 27 Mar 2021 01:22:41 +0000 (01:22 +0000)]
Merge branch 'double-dead-keys' into 'master'

Double dead keys

See merge request GNOME/gtk!3355

5 years agoAdd some more compose tests
Matthias Clasen [Sat, 27 Mar 2021 00:14:24 +0000 (20:14 -0400)]
Add some more compose tests

These tests changes to the algorithmic dead key
matching.

5 years agoimcontext: Tweak dead key handling
Matthias Clasen [Fri, 26 Mar 2021 23:50:05 +0000 (19:50 -0400)]
imcontext: Tweak dead key handling

Reshuffle things to allow for a limited amount of
dead key 'chaining'. We keep up to 2 dead keys in
the preedit, so you can type
<dead_acute> <dead_cedilla> <c>
to produce ḉ, while still getting ```c with
<dead_grave> <dead_grave> <dead_grave> <c>.

5 years agocomposetable: Limit algorithmic checking
Matthias Clasen [Fri, 26 Mar 2021 23:48:41 +0000 (19:48 -0400)]
composetable: Limit algorithmic checking

Only check for combinations of up to 2 dead keys with
a base character. We don't want to spend ages generating
all permutations of long sequences.

5 years agoMerge branch 'icon-fallback' into 'master'
Matthias Clasen [Fri, 26 Mar 2021 19:33:13 +0000 (19:33 +0000)]
Merge branch 'icon-fallback' into 'master'

Icon fallback

See merge request GNOME/gtk!3353

5 years agowidget-factory: Add missing icons
Matthias Clasen [Fri, 26 Mar 2021 18:15:07 +0000 (14:15 -0400)]
widget-factory: Add missing icons

This removes all the cases where we were showing a missing-image
when running with the hicolor icontheme.

5 years agowidget-factory: Drop two icons from the iconview
Matthias Clasen [Fri, 26 Mar 2021 17:30:46 +0000 (13:30 -0400)]
widget-factory: Drop two icons from the iconview

This avoids the scrollbar by default, which is nice.

5 years agoicons: Add text-x-generic
Matthias Clasen [Fri, 26 Mar 2021 17:17:06 +0000 (13:17 -0400)]
icons: Add text-x-generic

The file chooser needs at least one icon that we can
fall back to for non-directories. text-x-generic is
that icon.

5 years agofilechooser: Check that icons exist
Matthias Clasen [Fri, 26 Mar 2021 17:15:19 +0000 (13:15 -0400)]
filechooser: Check that icons exist

Otherwise we end up showing missing-image in the
file chooser, and thats sad.

5 years agoicontheme: Add gtk_icon_theme_has_gicon
Matthias Clasen [Fri, 26 Mar 2021 17:15:54 +0000 (13:15 -0400)]
icontheme: Add gtk_icon_theme_has_gicon

Add a utility function to check whether the icontheme
will produce something better than missing-image for
a GIcon. Obviously, we can only answer this question
if the GIcon is a themed icon the begin with.

5 years agowidget-factory: Add emblem-shared-symbolic icon
Matthias Clasen [Fri, 26 Mar 2021 15:59:37 +0000 (11:59 -0400)]
widget-factory: Add emblem-shared-symbolic icon

We use it, so include it.

5 years agoicons: Sync color-select-symbolic with Adwaita
Matthias Clasen [Fri, 26 Mar 2021 15:59:01 +0000 (11:59 -0400)]
icons: Sync color-select-symbolic with Adwaita

This icon changed a bit since we incorporated it.

5 years agoicons: Add system-run-symbolic
Matthias Clasen [Fri, 26 Mar 2021 15:42:09 +0000 (11:42 -0400)]
icons: Add system-run-symbolic

This is used by Adwaita for devel headers, so include it.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 26 Mar 2021 15:30:51 +0000 (15:30 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!3351

5 years agoicon: Add a printer icon
Matthias Clasen [Fri, 26 Mar 2021 15:30:14 +0000 (11:30 -0400)]
icon: Add a printer icon

This showed up as missing icon in the print dialog when
used with the hicolor icontheme.

5 years agogdk: Add an arg check to gdk_device_get_timestamp
Matthias Clasen [Fri, 26 Mar 2021 15:09:50 +0000 (11:09 -0400)]
gdk: Add an arg check to gdk_device_get_timestamp

Pointed out by Emmanuele Bassi.

5 years agogdk: Add gdk_device_get_timestamp
Matthias Clasen [Fri, 26 Mar 2021 02:39:15 +0000 (22:39 -0400)]
gdk: Add gdk_device_get_timestamp

Give each device a timestamp that reflects the last
user activity with that device, as reflected in the
events that are produced for this device.

5 years agoicons: Add icons that are used in the inspector
Matthias Clasen [Fri, 26 Mar 2021 15:00:01 +0000 (11:00 -0400)]
icons: Add icons that are used in the inspector

These were showing up as missing icons when opening
the Inspector with the hicolor icontheme:

system-search-symbolic
go-previous-symbolic
go-next-symbolic
display-brightness-symbolic

5 years agoMerge branch 'device-timestamp' into 'master'
Matthias Clasen [Fri, 26 Mar 2021 14:51:37 +0000 (14:51 +0000)]
Merge branch 'device-timestamp' into 'master'

Device timestamp

Closes #3792

See merge request GNOME/gtk!3350

5 years agotextview: Use device timestamps for obscured cursors
Matthias Clasen [Fri, 26 Mar 2021 02:42:10 +0000 (22:42 -0400)]
textview: Use device timestamps for obscured cursors

Stash away the device timestamp when obscuring
the pointer, and compare it when we decice whether
to unobscure it. This fixes a problem where synthetic
motion events would make the cursor reappear
prematurely.

Fixes: #3792
5 years agotext: Use device timestamps for obscured cursors
Matthias Clasen [Fri, 26 Mar 2021 02:40:30 +0000 (22:40 -0400)]
text: Use device timestamps for obscured cursors

Stash away the device timestamp when obscuring
the pointer, and compare it when we decice whether
to unobscure it. This fixes a problem where synthetic
motion events would make the cursor reappear
prematurely.

5 years agogdk: Add gdk_device_get_timestamp
Matthias Clasen [Fri, 26 Mar 2021 02:39:15 +0000 (22:39 -0400)]
gdk: Add gdk_device_get_timestamp

Give each device a timestamp that reflects the last
user activity with that device, as reflected in the
events that are produced for this device.

5 years agoMerge branch 'pixbuf-loader-check' into 'master'
Matthias Clasen [Fri, 26 Mar 2021 11:29:47 +0000 (11:29 +0000)]
Merge branch 'pixbuf-loader-check' into 'master'

Make testsuite fail if we lack pixbuf loaders

See merge request GNOME/gtk!3348

5 years agoBe explicit when building gdk-pixbuf subproject
Matthias Clasen [Fri, 26 Mar 2021 02:52:30 +0000 (22:52 -0400)]
Be explicit when building gdk-pixbuf subproject

We require png and jpeg loaders.

5 years agoMake testsuite fail if we lack pixbuf loaders
Matthias Clasen [Fri, 26 Mar 2021 01:22:23 +0000 (21:22 -0400)]
Make testsuite fail if we lack pixbuf loaders

Add a test that requires that we have png and jpeg
loaders.

5 years agoMake testsuite fail if we lack pixbuf loaders
Matthias Clasen [Fri, 26 Mar 2021 01:22:23 +0000 (21:22 -0400)]
Make testsuite fail if we lack pixbuf loaders

Add a test that requires that we have png and jpeg
loaders.

5 years agoAdd logging for icon fallback
Matthias Clasen [Thu, 25 Mar 2021 21:26:15 +0000 (17:26 -0400)]
Add logging for icon fallback

Add GTK_DEBUG=iconfallback which prints out what icon names
we fall back to image-missing for.

5 years agoMerge branch 'carlosgc/clipboard-crash' into 'master'
Matthias Clasen [Thu, 25 Mar 2021 20:48:28 +0000 (20:48 +0000)]
Merge branch 'carlosgc/clipboard-crash' into 'master'

clipboard: Fix a crash when GdkContentProviderUnion doesn't support the given data format

See merge request GNOME/gtk!3346

5 years agoclipboard: Fix a crash when GdkContentProviderUnion doesn't support the given data...
Carlos Garcia Campos [Thu, 25 Mar 2021 14:10:00 +0000 (15:10 +0100)]
clipboard: Fix a crash when GdkContentProviderUnion doesn't support the given data format

After iterating all the providers, all of them returning unsupported
error, gdk_content_provider_union_get_value() returns FALSE without
filing the given GError. Then gdk_clipboard_read_value_internal()
assumes there's a GError when FALSE is returned and
g_task_return_error() fails. We can just chain up to parent
implementation to ensure the GError is filled with unsupported error.

5 years agoMerge branch 'shader' into 'master'
Matthias Clasen [Thu, 25 Mar 2021 12:37:12 +0000 (12:37 +0000)]
Merge branch 'shader' into 'master'

ngl: Fix crash with intel driver on Windows when compiling shaders

Closes #3783

See merge request GNOME/gtk!3344

5 years agongl: Fix crash with intel driver on Windows when compiling shaders
Xavier Claessens [Wed, 24 Mar 2021 13:30:02 +0000 (09:30 -0400)]
ngl: Fix crash with intel driver on Windows when compiling shaders

Fixes #3783.

5 years agoMerge branch 'wip/fix-stack-get-item' into 'master'
Matthias Clasen [Wed, 24 Mar 2021 20:34:47 +0000 (20:34 +0000)]
Merge branch 'wip/fix-stack-get-item' into 'master'

stack: Fix some list model issues

See merge request GNOME/gtk!3345

5 years agostack: Fix check if page is selected
Mohammed Sadiq [Wed, 24 Mar 2021 14:53:09 +0000 (20:23 +0530)]
stack: Fix check if page is selected

When there is no visible child, gtk_selection_model_is_selected()
was returning TRUE for any invalid position.

So check if the page is non-NULL and match

5 years agostack: Increase reference only if page is non-NULL
Mohammed Sadiq [Wed, 24 Mar 2021 13:48:02 +0000 (19:18 +0530)]
stack: Increase reference only if page is non-NULL

g_list_nth_data() may return NULL if position is off the end

5 years agoMerge branch 'gles-fallback' into 'master'
Matthias Clasen [Wed, 24 Mar 2021 11:21:21 +0000 (11:21 +0000)]
Merge branch 'gles-fallback' into 'master'

gdkglcontext-wayland: Fallback to GLES 2.0 after legacy failed

See merge request GNOME/gtk!3327

5 years agoMerge branch 'gdkmacosglcontext-fix' into 'master'
Matthias Clasen [Wed, 24 Mar 2021 11:09:51 +0000 (11:09 +0000)]
Merge branch 'gdkmacosglcontext-fix' into 'master'

gdkmacosglcontext: fix compilation error

See merge request GNOME/gtk!3342

5 years agogdkmacosglcontext: fix compilation error
Tom Schoonjans [Wed, 24 Mar 2021 10:07:55 +0000 (10:07 +0000)]
gdkmacosglcontext: fix compilation error

See https://developer.apple.com/documentation/appkit/nsopenglpixelformat/1436219-initwithattributes?language=occ

5 years agoMerge branch 'builder-tool-placeholder-crash' into 'master'
Matthias Clasen [Tue, 23 Mar 2021 21:02:39 +0000 (21:02 +0000)]
Merge branch 'builder-tool-placeholder-crash' into 'master'

gtk-builder-tool: Avoid a crash with <placeholder/>

Closes #3781

See merge request GNOME/gtk!3339

5 years agoMerge branch 'wip/chergert/ngl-fix-windows-intel-driver' into 'master'
Matthias Clasen [Tue, 23 Mar 2021 21:02:11 +0000 (21:02 +0000)]
Merge branch 'wip/chergert/ngl-fix-windows-intel-driver' into 'master'

ngl: move uniform key mapping into uniform state

Closes #3780

See merge request GNOME/gtk!3340

5 years agongl: move uniform key mapping into uniform state
Christian Hergert [Tue, 23 Mar 2021 19:10:12 +0000 (12:10 -0700)]
ngl: move uniform key mapping into uniform state

Previously, we translated the uniform key (an enum) into a location within
the shader program in GskNglProgram. A number of performance improvements
were focused around having low nubers for the uniform locations. Generally
this is the case, but some drivers such as old Intel drivers on Windows
may use rather large numbers for those.

To combat this, we can push the translation of uniform keys into locations
at the GskNglUniformState level so that we work with unranslated keys
through the process until applying them.

Fixes #3780

5 years agogtk-builder-tool: Avoid a crash with <placeholder/>
Matthias Clasen [Tue, 23 Mar 2021 19:24:30 +0000 (15:24 -0400)]
gtk-builder-tool: Avoid a crash with <placeholder/>

Not sure we can do much with a ui file that has
<placeholder/> elements littered throughout. But
at least we can avoid crashing while trying to
convert it.

Fixes: #3781
5 years agoMerge branch 'ebassi/for-master' into 'master'
Emmanuele Bassi [Tue, 23 Mar 2021 15:39:47 +0000 (15:39 +0000)]
Merge branch 'ebassi/for-master' into 'master'

Ebassi/for master

See merge request GNOME/gtk!3338

5 years agodocs: Add a side bar to the docs.gtk.org landing page
Emmanuele Bassi [Tue, 23 Mar 2021 14:58:03 +0000 (14:58 +0000)]
docs: Add a side bar to the docs.gtk.org landing page

Make it look like the API references hosted on docs.gtk.org.

5 years agodocs: Update the Cairo reference link
Emmanuele Bassi [Tue, 23 Mar 2021 14:49:20 +0000 (14:49 +0000)]
docs: Update the Cairo reference link

5 years agoMerge branch 'ebassi/for-master' into 'master'
Emmanuele Bassi [Tue, 23 Mar 2021 13:39:18 +0000 (13:39 +0000)]
Merge branch 'ebassi/for-master' into 'master'

Publish docs for Pango and GdkPixbuf

See merge request GNOME/gtk!3337

5 years agodocs: Drop the external class for links to docs.gtk.org
Emmanuele Bassi [Tue, 23 Mar 2021 13:09:28 +0000 (13:09 +0000)]
docs: Drop the external class for links to docs.gtk.org

5 years agodocs: Link Pango and GdkPixbuf on docs.gtk.org
Emmanuele Bassi [Tue, 23 Mar 2021 12:25:40 +0000 (12:25 +0000)]
docs: Link Pango and GdkPixbuf on docs.gtk.org

5 years agoci: Build Pango and GdkPixbuf's docs
Emmanuele Bassi [Tue, 23 Mar 2021 12:25:08 +0000 (12:25 +0000)]
ci: Build Pango and GdkPixbuf's docs

We want to publish them alongside GTK's own API reference.

5 years agoMerge branch 'bilelmoussaoui/expressions-annotations' into 'master'
Matthias Clasen [Tue, 23 Mar 2021 00:49:54 +0000 (00:49 +0000)]
Merge branch 'bilelmoussaoui/expressions-annotations' into 'master'

Add missing nullable annotations to BoolFilter/StringFilter

See merge request GNOME/gtk!3334

5 years agoMerge branch 'issue3715-gtk4' into 'master'
Matthias Clasen [Mon, 22 Mar 2021 15:09:42 +0000 (15:09 +0000)]
Merge branch 'issue3715-gtk4' into 'master'

[gtk4] x11/dnd: Ignore XErrors from the COW

Closes #3715

See merge request GNOME/gtk!3336

5 years agox11/dnd: Ignore XErrors from the COW
Olivier Fourdan [Mon, 22 Mar 2021 14:34:31 +0000 (15:34 +0100)]
x11/dnd: Ignore XErrors from the COW

The DnD code for X11 adds the composite overlay window (aka COW) to the
cache.

Yet the X11 requests to get and release the COW may trigger XErrors that
we ought to ignore otherwise the client will abort.

Fixes: #3715
5 years agoMerge branch 'really-fix-3581' into 'master'
Chun-wei Fan [Mon, 22 Mar 2021 14:18:44 +0000 (14:18 +0000)]
Merge branch 'really-fix-3581' into 'master'

GDK-Win32: Remove extraneous call to _gdk_win32_append_event() (really fix issue #3581)

Closes #3581

See merge request GNOME/gtk!3306

5 years agoMerge branch 'meson-install-script' into 'master'
Matthias Clasen [Mon, 22 Mar 2021 12:45:45 +0000 (12:45 +0000)]
Merge branch 'meson-install-script' into 'master'

Meson: Use gnome.install_script()

See merge request GNOME/gtk!3135

5 years agogtk: add missing nullable annotations to StringFilter
Bilal Elmoussaoui [Mon, 22 Mar 2021 11:42:19 +0000 (12:42 +0100)]
gtk: add missing nullable annotations to StringFilter

5 years agogtk: add missing nullable annotations to BoolFilter
Bilal Elmoussaoui [Mon, 22 Mar 2021 11:42:13 +0000 (12:42 +0100)]
gtk: add missing nullable annotations to BoolFilter

5 years agoMerge branch 'wip/baedert/for-master' into 'master'
Matthias Clasen [Mon, 22 Mar 2021 11:17:58 +0000 (11:17 +0000)]
Merge branch 'wip/baedert/for-master' into 'master'

ngl: Remove unused function

See merge request GNOME/gtk!3332

5 years agoMerge branch 'better-dead-keys' into 'master'
Matthias Clasen [Mon, 22 Mar 2021 02:37:14 +0000 (02:37 +0000)]
Merge branch 'better-dead-keys' into 'master'

Better dead keys

See merge request GNOME/gtk!3329

5 years agoRegenerate compose sequence file
Matthias Clasen [Mon, 22 Mar 2021 01:05:20 +0000 (21:05 -0400)]
Regenerate compose sequence file

Update our compose sequences based on the current
update xorg Compose.pre file. Beyond that, remove
some deadkey sequences that we are now handling
(better) in code.

5 years agoMove compose related tooling to a subdir
Matthias Clasen [Mon, 22 Mar 2021 00:56:17 +0000 (20:56 -0400)]
Move compose related tooling to a subdir

This reduces the clutter in gtk/.

5 years agocompose-parse: Add a negative lookaside
Matthias Clasen [Mon, 22 Mar 2021 00:53:24 +0000 (20:53 -0400)]
compose-parse: Add a negative lookaside

Make this script parse gtk-compose-remove.txt for
sequences to remove from the xorg Compose file.
This will be used for removing some deadkey combinations
that we can handle better in code.

Also, make this script explicitly python2. I tried
porting it to python3, but gave up in the end.

5 years agoimcontext: Improve dead key handling more
Matthias Clasen [Sun, 21 Mar 2021 22:51:57 +0000 (18:51 -0400)]
imcontext: Improve dead key handling more

For sequences like ``, we want to commit the first
deadkey and then continue preedit with the second.

The alternative is to do chained deadkeys, where
entering ~~a yields ̃̀̃̃a. But we don't do that, and
I think that would be more controversial.

5 years agoimcontext: Improve dead key handling
Matthias Clasen [Sun, 21 Mar 2021 22:17:32 +0000 (18:17 -0400)]
imcontext: Improve dead key handling

For sequences like `x, where we don't have a compose
sequence, we still want to commit "`x", and not silently
eat the keys.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sun, 21 Mar 2021 20:48:04 +0000 (20:48 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!3328

5 years agogdkglcontext-wayland: Fallback to GLES 2.0 after legacy failed
Emmanuel Gil Peyrot [Sun, 21 Mar 2021 20:02:08 +0000 (20:02 +0000)]
gdkglcontext-wayland: Fallback to GLES 2.0 after legacy failed

This lets the NGL backend be selected instead of the Cairo backend on
devices which expose both GL and GLES, but have better support of GLES.

Tested on a PinePhone.

5 years agoinspector: Allow inspecting Unicode
Matthias Clasen [Sun, 21 Mar 2021 20:02:39 +0000 (16:02 -0400)]
inspector: Allow inspecting Unicode

Add a way to show text as a Unicode sequence.
This can be helpful in understanding what is
happening with text.

5 years agongl: Fix a rounding error in subpixel positioning
Matthias Clasen [Sat, 20 Mar 2021 03:18:43 +0000 (23:18 -0400)]
ngl: Fix a rounding error in subpixel positioning

1024 / 4 is 256, not 250.

5 years agogl: Fix a rounding error in subpixel positioning
Matthias Clasen [Sat, 20 Mar 2021 03:17:58 +0000 (23:17 -0400)]
gl: Fix a rounding error in subpixel positioning

1024 / 4 is 256, not 250.

5 years agobuild: Disable g_assert in release builds
Matthias Clasen [Sat, 20 Mar 2021 01:56:48 +0000 (21:56 -0400)]
build: Disable g_assert in release builds

The ngl renderer is heavily using g_assert, and it
is written with the assumption that these assertions
will be compiled out in release builds.

5 years agocalendar: Typo fix
Matthias Clasen [Sat, 20 Mar 2021 01:03:53 +0000 (21:03 -0400)]
calendar: Typo fix

5 years agongl: Remove an unused field
Matthias Clasen [Sat, 20 Mar 2021 00:50:40 +0000 (20:50 -0400)]
ngl: Remove an unused field

We are ignoring the debug nodes, so the
debug_groups string chunk is unused.

5 years agongl: Always populate the glyph front cache
Matthias Clasen [Fri, 19 Mar 2021 23:13:16 +0000 (19:13 -0400)]
ngl: Always populate the glyph front cache

There is no reason not to do this also in the
case when we upload the glyph.

5 years agongl: Use floorf consistently
Matthias Clasen [Fri, 19 Mar 2021 22:58:29 +0000 (18:58 -0400)]
ngl: Use floorf consistently

5 years agongl: Remove unused function
Timm Bäder [Sun, 21 Mar 2021 17:00:10 +0000 (18:00 +0100)]
ngl: Remove unused function

5 years agoUpdate Polish translation
Piotr Drąg [Sat, 20 Mar 2021 14:41:34 +0000 (15:41 +0100)]
Update Polish translation

5 years agoMerge branch 'ebassi/for-master' into 'master'
Emmanuele Bassi [Sat, 20 Mar 2021 12:31:10 +0000 (12:31 +0000)]
Merge branch 'ebassi/for-master' into 'master'

Ebassi/for master

See merge request GNOME/gtk!3324

5 years agodocs: Put core deps below UI links
Emmanuele Bassi [Sat, 20 Mar 2021 12:18:42 +0000 (12:18 +0000)]
docs: Put core deps below UI links

We assume people will be more interested in GTK if they get to
docs.gtk.org.

5 years agodocs: Fix typo in the docs landing page
Emmanuele Bassi [Sat, 20 Mar 2021 12:18:26 +0000 (12:18 +0000)]
docs: Fix typo in the docs landing page

5 years agoUpdate Ukrainian translation
Yuri Chornoivan [Sat, 20 Mar 2021 08:54:01 +0000 (08:54 +0000)]
Update Ukrainian translation

5 years agoUpdate Ukrainian translation
Yuri Chornoivan [Sat, 20 Mar 2021 08:51:46 +0000 (08:51 +0000)]
Update Ukrainian translation

5 years agoMerge branch 'a11y-strdup' into 'master'
Emmanuele Bassi [Fri, 19 Mar 2021 22:31:37 +0000 (22:31 +0000)]
Merge branch 'a11y-strdup' into 'master'

a11y: Don't copy attribute names in attribute sets

See merge request GNOME/gtk!3323

5 years agoa11y: Don't copy attribute names in attribute sets
Matthias Clasen [Fri, 19 Mar 2021 21:00:04 +0000 (17:00 -0400)]
a11y: Don't copy attribute names in attribute sets

We only need these names when serializing a11y information
for tests. And copying these strings is entirely unnecessary.
So, just pass a callback instead.

5 years agoMerge branch 'ngl-glyph-cache' into 'master'
Matthias Clasen [Fri, 19 Mar 2021 18:59:33 +0000 (18:59 +0000)]
Merge branch 'ngl-glyph-cache' into 'master'

Ngl glyph cache

See merge request GNOME/gtk!3322

5 years agongl: Improve the glyph front cache
Matthias Clasen [Fri, 19 Mar 2021 18:30:19 +0000 (14:30 -0400)]
ngl: Improve the glyph front cache

The effectiveness of the front cache is limited by
subpixel positioning making it very likely that we
will meet the same glyph in  different x phases inside
a single line of text.

Factoring the xphase into the front cache key makes things
better. For the string eeeeeeeeeeeeeeeeeee

before: 0% front cache hits
after: >90% front cache hits

5 years agongl: Drop an unused struct member
Matthias Clasen [Fri, 19 Mar 2021 18:05:15 +0000 (14:05 -0400)]
ngl: Drop an unused struct member

GskNglGlyphLibrary.hash_table wasn't used.

5 years agotexttag: A few typo fixes
Matthias Clasen [Fri, 19 Mar 2021 18:04:27 +0000 (14:04 -0400)]
texttag: A few typo fixes

5 years agoMerge branch 'ebassi/for-master' into 'master'
Emmanuele Bassi [Fri, 19 Mar 2021 17:57:42 +0000 (17:57 +0000)]
Merge branch 'ebassi/for-master' into 'master'

Ebassi/for master

See merge request GNOME/gtk!3321

5 years agodocs: Restructure the list of UI libraries
Emmanuele Bassi [Fri, 19 Mar 2021 17:23:46 +0000 (17:23 +0000)]
docs: Restructure the list of UI libraries

Put GTK at the top.

5 years agodocs: Fix typo in the docs landing page
Emmanuele Bassi [Fri, 19 Mar 2021 17:23:29 +0000 (17:23 +0000)]
docs: Fix typo in the docs landing page

5 years agoRevert "ngl: Remove duplicate check"
Matthias Clasen [Fri, 19 Mar 2021 17:17:02 +0000 (13:17 -0400)]
Revert "ngl: Remove duplicate check"

This reverts commit 1fd534ef1ee0f5e62dbdcf1f82ed7dc287d77d13.

This change revealed that we are not treating damage regions
correctly, and we regularly end up with

5 years agoMerge branch 'ebassi/for-master' into 'master'
Emmanuele Bassi [Fri, 19 Mar 2021 14:55:12 +0000 (14:55 +0000)]
Merge branch 'ebassi/for-master' into 'master'

Fix the landing page structure

See merge request GNOME/gtk!3320

5 years agoFix the landing page structure
Emmanuele Bassi [Fri, 19 Mar 2021 14:36:34 +0000 (14:36 +0000)]
Fix the landing page structure